package com.ruoyi.annuity.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 年费信息对象 tb_annuity_record
 * 
 * @author ruoyi
 * @date 2023-04-24
 */
public class TbAnnuityRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 缴费信息编号 */
    private Long annuityRecordId;

    /** 商户编号 */
    @Excel(name = "商户编号")
    private Long lesseeId;

    /** 支付渠道 */
    @Excel(name = "支付渠道")
    private Integer payType;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal price;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private Integer status;

    /** 租户信息 */
    private List<TbLessee> tbLesseeList;

    public void setAnnuityRecordId(Long annuityRecordId) 
    {
        this.annuityRecordId = annuityRecordId;
    }

    public Long getAnnuityRecordId() 
    {
        return annuityRecordId;
    }
    public void setLesseeId(Long lesseeId) 
    {
        this.lesseeId = lesseeId;
    }

    public Long getLesseeId() 
    {
        return lesseeId;
    }
    public void setPayType(Integer payType) 
    {
        this.payType = payType;
    }

    public Integer getPayType() 
    {
        return payType;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public List<TbLessee> getTbLesseeList()
    {
        return tbLesseeList;
    }

    public void setTbLesseeList(List<TbLessee> tbLesseeList)
    {
        this.tbLesseeList = tbLesseeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("annuityRecordId", getAnnuityRecordId())
            .append("lesseeId", getLesseeId())
            .append("payType", getPayType())
            .append("price", getPrice())
            .append("paymentTime", getPaymentTime())
            .append("status", getStatus())
            .append("tbLesseeList", getTbLesseeList())
            .toString();
    }
}
